<!DOCTYPE html>
<html lang="en">
<head>
<base href="${basePath}">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta charset="utf-8">
<title>修改密码 - 会员 - 云支付|云收款</title>
<#include "/views/ftl/base/shop_manage_header.ftl">
</head>
<body class="no-skin">
<#include "/views/ftl/base/shop_manage_top.ftl">  
<div class="main-container" id="main-container">
<#import "/views/ftl/base/shop_manage_left.ftl" as r>
<@r.thebean urlname="modify_pass"/>
			 
			<!-- /section:basics/sidebar -->
			<div class="main-content">
				<!-- #section:basics/content.breadcrumbs -->
				<div class="breadcrumbs" id="breadcrumbs">
					<script type="text/javascript">
						try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
					</script>

					<ul class="breadcrumb">
						<li>
							<i class="ace-icon fa fa-home home-icon"></i>
							<a href="shopmanage/Index_index">首页</a>
						</li>

						<li class="active">
							修改密码
						</li>
						<!--<li class="active">Form Elements</li>-->
					</ul><!-- /.breadcrumb -->

					
					<!-- /section:basics/content.searchbox -->
				</div>

				<!-- /section:basics/content.breadcrumbs -->
				<div class="page-content">
					<#include "/views/ftl/base/shop_manage_right_float.ftl">

					<!-- /section:settings.box -->					<div class="page-content-area">
						<div class="page-header">
							<h1>
								修改密码
								
							</h1>
						</div><!-- /.page-header -->

						<div class="row">
							<div class="col-xs-12">
								<!-- PAGE CONTENT BEGINS -->
								 <div class="form-horizontal" role="form"  >
									<!-- #section:elements.form -->
									 
									<div class="form-group">
										<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 原密码 </label>

										<div class="col-sm-9">
											<input id="old_pass_word_input" type="password" name="u_pass" value="" class="form-control">
											<span class="help-block"></span>
										</div>
									</div>
									<div class="form-group">
										<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 新密码 </label>

										<div class="col-sm-9">
											<input id="pass_word_input" type="password" name="pass1" value="" class="form-control">
											<span class="help-block">不要含有字符哦!</span>
										</div>
									</div>
									
									<div class="form-group">
										<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 确认新密码 </label>

										<div class="col-sm-9">
											<input id="re_pass_word_input" type="password" name="pass2" value="" class="form-control">
											<span class="help-block">不要含有字符哦!</span>
										</div>
									</div>
									
									

									
									<div class="clearfix form-actions">
										<div class="col-md-offset-3 col-md-9">
											<button id="modify_pass_btn" class="btn btn-info" type="submit">
												<i class="ace-icon fa fa-check bigger-110"></i>
												修改密码
											</button>

											
										</div>
									</div>
									
								 </div><!-- PAGE CONTENT ENDS -->
							</div><!-- /.col -->
						</div><!-- /.row -->
					</div><!-- /.page-content-area -->
				</div><!-- /.page-content -->
			</div><!-- /.main-content -->

<#include "/views/ftl/base/shop_manage_footer.ftl">
	

<div id="limiterBox" class="limiterBox" style="position: absolute; display: none;"></div>
<script type="text/javascript">
$(function(){
	
	$('#modify_pass_btn').click(function(){
			var oldPassWord = $('#old_pass_word_input').val();
			var passWord = $('#pass_word_input').val();
			var rePassWord = $('#re_pass_word_input').val();
			if(''==oldPassWord || '' == passWord || '' == rePassWord) {
				alert("密码不能为空");
				return ;
			}
			
			if(passWord != rePassWord){
				alert("两次密码输入不一致");
				return ;
			}
			
			$.ajax({ 
				url : "shopmanage/Member_modifyUserPass",
				data : {
					 oldPassWord :oldPassWord,
					 passWord:passWord,
					 rePassWord:rePassWord
				}, 
				dataType :"JSON",
				cache : false, 
				type : "POST",
				success : function(dat){
					alert(dat.msg);
				}
			});
			
			 $('#old_pass_word_input').val("");
			 $('#pass_word_input').val("");
			 $('#re_pass_word_input').val("");
	});
	
});
</script>
</body>
</html>